package com.wkck.service;

import com.wkck.VO.UserAllInfoVo;
import com.wkck.VO.UserDeliveredCareersVo;
import com.wkck.domain.DeliveredLibraryHistory;
import com.wkck.domain.User;
import com.wkck.domain.UserElseInfo;
import com.wkck.dto.UserLoginDto;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * @Author: CK
 * @Date: 2024/02/28/18:10
 * @Description:
 */
public interface UserFrontendService {


    Map<String, Object> login(UserLoginDto userLoginDto, HttpSession session);

    UserAllInfoVo getUserAllInfoById(Integer id);

    Boolean modifyUserBaseInfo(Integer id, User user);

    Boolean modifyUserElseInfo(Integer id, UserElseInfo userElseInfo);

    /***
     * @Author: CK
     * @Date: 2024/3/19
     * @Param: [id]
     * @Description: 根据用户id查询用户已投递的职位
     */
    List<UserDeliveredCareersVo> queryUserDeliveredCareersByUserId(Integer id);

    /***
     * @Author: CK
     * @Date: 2024/3/19
     * @Param: [dl_id]
     * @Description: 根据投递id获取投递历史记录
     */
    List<DeliveredLibraryHistory> getDeliverHistoryById(Long dlId);

    /***
     * @Author: CK
     * @Date: 2024/3/19
     * @Param: [dl_id]
     * @Description: 撤回投递记录
     */
    Boolean withdrawDeliverHistory(Long dlId);

    /***
     * @Author: CK
     * @Date: 2024/3/20
     * @Param: [file]
     * @Description: 修改用户头像
     */
    Boolean changeUserAvatarById(int id, String localFilePath, String filename);
}
